/*
* @Author: apple
* @Date:   2017-01-13 15:54:14
* @Last Modified by:   apple
* @Last Modified time: 2017-01-13 17:33:58
*/

var templating = require('../templating');

var fn_hello = async (ctx, next) => {
    var name = ctx.params.name;
    //ctx.response.body = `<h1>Hello, ${name}!</h1>`;

    ctx.render('hello.html', { name: '小明' });
};

module.exports = {
    'GET /hello/:name': fn_hello
};
